package com.hmall.item.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hmall.item.mapper.ItemMapper;
import com.hmall.item.pojo.Item;
import com.hmall.item.service.IItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemService extends ServiceImpl<ItemMapper, Item> implements IItemService {

    @Autowired
    private ItemMapper itemMapper;


    @Override
        public void getitem(Integer page, Integer size) {
//            //开启分页
//            PageHelper.startPage(page,size);
//            //执行查询
//            List<Item> list = itemMapper.list(page,size);
//        //分装分页结果
//        PageInfo<Item> itemPageInfo = new PageInfo<>(list);

//        return itemPageInfo;
    }
}
